//2009/08/23 01:28:38
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <sstream>
#include <algorithm>

using namespace std;

class SMSLanguage
{
public:
    string translate(string text)
    {
        string s;
        for (int i=0; i<text.size(); i++)
            if (text[i] == '.'||text[i] == ','||text[i] == '?'||text[i] == '!') continue;
           // else if (text[i] == ' ') s += ' ';
            else s += tolower(text[i]);
        cout << "s: " << s << endl;
        for (int j=0; j<s.size();)
        {
            size_t pos = s.substr(j).find("and");
            if (pos == string::npos) break;
            j += pos;
			s.replace(j, 3, "&");
			cout << "j: " << j << "pos: " << pos << endl;
			cout << "s: " << s << endl;
        }
        cout << "s: " << s << endl;
        for (int j=0; j<s.size();)
        {
            size_t pos = s.substr(j).find("ate");
            if (pos == string::npos) break;
            j += pos;
			s.replace(j, 3, "8");
        }
        cout << "s: " << s << endl;
        for (int j=0; j<s.size();)
        {
            size_t pos = s.substr(j).find("at");
            if (pos == string::npos) break;
            j += pos;
			s.replace(j, 2, "@");
        }
        cout << "s: " << s << endl;
        for (int j=0; j<s.size();)
        {
            size_t pos = s.substr(j).find("you");
            if (pos == string::npos) break;
            j += pos;
			s.replace(j, 3, "U");
        }
        cout << "s: " << s << endl;
        return s;
    }
};
